package com.example.tvwanandroid.activity

import android.util.Log
import com.example.tvwanandroid.R
import com.example.tvwanandroid.base.BaseActivity
import com.example.tvwanandroid.bean.BannerBean
import com.example.tvwanandroid.presenter.BannerPresenter
import com.example.tvwanandroid.view.BannerView
import kotlinx.android.synthetic.main.activity_home.view.*

/**
 * @作者: njb
 * @时间: 2020/12/4 17:57
 * @描述:
 */
class HomeActivity :BaseActivity<BannerPresenter>(),(BannerView){
    override val layoutId: Int
        get() = R.layout.activity_home

    override fun createPresenter(): BannerPresenter {
        return BannerPresenter(this)
    }

    override fun initView() {
        presenter!!.getBannerList()
    }

    override fun addListener() {
    }

    override fun onLoadBanner(data: List<BannerBean>) {
        Log.d("--data--", data.toString())
    }

    override fun showLoading() {
    }

    override fun hideLoading() {
    }

}